package com.ecloud.service.security.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ecloud.openapi.security.dto.BaseMenuDto;
import com.ecloud.openapi.security.po.BaseMenuPo;
import com.ecloud.openapi.security.vo.BaseMenuVo;

/**
 * 机构菜单表 Mapper接口
 *
 * @author LiuGangQiang Create in 2021/07/25
 */
@Mapper
public interface BaseMenuDao extends BaseMapper<BaseMenuPo> {

    Integer updateByDto(BaseMenuDto dto);

    IPage<BaseMenuVo> queryList(Page<?> page, @Param("dto") BaseMenuDto dto);

    BaseMenuVo queryOne(@Param("id") String id);

}
